import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import { mergeConfig, type UserConfig } from 'vite';

const __dirname = dirname(fileURLToPath(import.meta.url));

export default function viteConfig(defaultConfig: UserConfig) {
  return mergeConfig(defaultConfig, {
    plugins: [
    ],
    css: {
      postcss: __dirname,
    },
  });
}
